<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title></title>
		<link href="<c:url value="/resources/css/style.css" />" rel="stylesheet" type="text/css">
		<link href="<c:url value="/resources/css/default/easyui.css" />" rel="stylesheet" type="text/css">
				<link href="<c:url value="/resources/css/icon.css" />" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="<c:url value="/resources/js/jquery-1.7.2.js" />"></script>
		<script type="text/javascript" src="<c:url value="/resources/js/jquery.easyui.min.js" />"></script>
		<script type="text/javascript" src="<c:url value="/resources/js/easyui-lang-zh_CN.js" />"></script>
		<script type="text/javascript">
			$(function(){
				//$("#menuDIV").load("${pageContext.request.contextPath}/login/menu");
			});
			
			function onForward(uri){
				var mainDIV = document.getElementById("mainDIV");
				mainDIV.innerHTML = '<object id="obj"  height="100%" width="100%" type="text/html" data="' + uri +  '"></object>';
			}
		</script>
	</head>
	
	<body class="easyui-layout">
		<!-- 页头 -->
		<div data-options="region:'north',border:false" style="height:60px;background:#B3DFDA;padding:10px">north region</div>
		
		<!-- 菜单 -->
		<div data-options="region:'west',split:true,title:'&nbsp;'" style="width:200px;" id="menuDIV">
			
			<div class="easyui-accordion" style="width:193px;" fit="true" style="overflow: auto;">
				<div title="帐户管理" data-options="iconCls:'icon-edit'" style="overflow:auto;padding:10px;text-align:center;">					
					<p class="subMenu">
						<a onclick="onForward('${pageContext.request.contextPath}/account/initUser')">
							<img src="${pageContext.request.contextPath}/resources/images/icon/group.png"  style="margin-right: 10px;vertical-align: middle;"/>用户管理
						</a>
					</p>
					<p>角色管理(未做)</p>
					<p>权限管理(未做)</p>
				</div>
				<div title="商品管理" data-options="iconCls:'icon-help'" style="padding:10px;">
					<p class="subMenu">
						<a onclick="onForward('${pageContext.request.contextPath}/product/productList')">
							<img src="${pageContext.request.contextPath}/resources/images/icon/group.png"  style="margin-right: 10px;vertical-align: middle;"/>商品管理
						</a>
					</p>
					<p class="subMenu">
						<a onclick="onForward('${pageContext.request.contextPath}/productCategory/productCategoryList')">
							<img src="${pageContext.request.contextPath}/resources/images/icon/group.png"  style="margin-right: 10px;vertical-align: middle;"/>商品类别管理
						</a>
					</p>	
				</div>
				
				<div title="房间管理" data-options="iconCls:'icon-help'" style="padding:10px;">
					<p class="subMenu">
						<a onclick="onForward('${pageContext.request.contextPath}/roomType/roomTypeList')">
							<img src="${pageContext.request.contextPath}/resources/images/icon/group.png"  style="margin-right: 10px;vertical-align: middle;"/>房间类型管理
						</a>
					</p>
					
					<p class="subMenu">
						<a onclick="onForward('${pageContext.request.contextPath}/roomArea/roomAreaList')">
							<img src="${pageContext.request.contextPath}/resources/images/icon/group.png"  style="margin-right: 10px;vertical-align: middle;"/>房间区域管理
						</a>
					</p>
					
					<p class="subMenu">
						<a onclick="onForward('${pageContext.request.contextPath}/room/roomList')">
							<img src="${pageContext.request.contextPath}/resources/images/icon/group.png"  style="margin-right: 10px;vertical-align: middle;"/>房间管理
						</a>
					</p>	
				</div>
				
				<div title="手牌管理" data-options="iconCls:'icon-help'" style="padding:10px;">
					<p class="subMenu">
						<a onclick="onForward('${pageContext.request.contextPath}/tokenType/tokenTypeList')">
							<img src="${pageContext.request.contextPath}/resources/images/icon/group.png"  style="margin-right: 10px;vertical-align: middle;"/>手牌类型管理
						</a>
					</p>
					
					<p class="subMenu">
						<a onclick="onForward('${pageContext.request.contextPath}/token/tokenList')">
							<img src="${pageContext.request.contextPath}/resources/images/icon/group.png"  style="margin-right: 10px;vertical-align: middle;"/>手牌管理
						</a>
					</p>
				
				</div>
				
				<div title="技师管理" data-options="iconCls:'icon-help'" style="padding:10px;">
					<p class="subMenu">
						<a onclick="onForward('${pageContext.request.contextPath}/workerType/workerTypeList')">
							<img src="${pageContext.request.contextPath}/resources/images/icon/group.png"  style="margin-right: 10px;vertical-align: middle;"/>技师类型管理
						</a>
					</p>
					
					<p class="subMenu">
						<a onclick="onForward('${pageContext.request.contextPath}/worker/workerList')">
							<img src="${pageContext.request.contextPath}/resources/images/icon/group.png"  style="margin-right: 10px;vertical-align: middle;"/>技师管理
						</a>
					</p>
				
				</div>
				
			</div>
			
		</div>
		
		<!-- 页尾 -->
		<div data-options="region:'south',border:false" style="height:50px;background:#A9FACD;padding:10px;">south region</div>
		
		<!-- 内容 -->
		<div data-options="region:'center',title:'工号：${sysAccount.staff_no}，欢迎登录'" id="mainDIV" >
		</div>
	</body>
</html>